//获取用户信息
$.ajax({
    type: 'post',
    url: '/getUserPersonalInfo',
    dataType: 'json',
    data: {},
    success: function (data) {
        if (data['status'] == 101) {
            $.get("/toLogin", function (data, status, xhr) {
                window.location.replace("/login");
            });
        } else if (data['status'] == 103) {
            dangerNotice(data['message'] + " 获得个人信息失败")
        } else {
            $('#username').attr(data['data']['username']);
        }
    },
    error: function () {
    }
});